var box = document.getElementById('scrollBox');
var con1 = document.getElementById('con1');
var con2 = document.getElementById('con2');
con2.innerHTML = con1.innerHTML;
function scrollUp() {
    if (box.scrollTop >= con1.offsetHeight) {
        box.scrollTop = 0;
    } else {
        box.scrollTop++
    }
}
var time = 40;
var mytimer = setInterval(scrollUp, time);
box.onmouseover = function() {
    clearInterval(mytimer);
}
box.onmouseout = function() {
    mytimer = setInterval(scrollUp, time);
} 